%undefine _debugsource_packages
%define appname vinteo.desktop
%{?!_iconsdir:%global _iconsdir %{_datadir}/icons}

Summary(ru_RU.UTF-8):	Vinteo-клиент
Summary:	Client for Vinteo videoconferencing server
Name:		vinteo-desktop
Version:	3.15.0
Release:	42128
License:	Proprietary
Group:		Networking/Chat
Url:		https://vinteo.com/ru/
Vendor:		VINTEO OOO <support@vinteo.ru>
Source0:	https://download.vinteo.com/VinteoClient/linux/%{version}/Vinteo.Desktop-%{version}-x86_64.rpm

BuildRequires:	%{_bindir}/rpm2cpio
BuildRequires:	cpio

Requires:	at-spi2-core
Requires:	nss
Requires:	xdg-utils
Requires:	libgtk-3.so.0()(64bit)
Requires:	libXss.so.1()(64bit)
Requires:	libXtst.so.6()(64bit)
Requires:	libnotify.so.4()(64bit)
Requires:	libuuid.so.1()(64bit)


ExclusiveArch:	x86_64

%description
Client for Vinteo videoconferencing server

%description -l ru_RU.UTF-8
Клиентская программа для видеоконференций Vinteo

%files
/opt/VinteoDesktop
%{_datadir}/applications/%{appname}.desktop
%{_iconsdir}/hicolor/*x*/apps/%{appname}.png

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .
rpm2cpio Vinteo.Desktop-%{version}-x86_64.rpm | cpio -idmv

%build

%install
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}

cp -r opt %{buildroot}
cp -r usr/share/icons/hicolor %{buildroot}%{_iconsdir}
install -m644 usr/share/applications/%{appname}.desktop %{buildroot}%{_datadir}/applications
